package yj.scms.userservice.action;

import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import yj.scms.userservice.config.TestProperties;
import yj.scms.userserviceapi.pojo.UserEntity;

import java.util.List;
import java.util.Map;

@RequestMapping("tps")
@RestController
public class TestPropertiesAction {

    //获取properties配置文件信息
    @Autowired
    TestProperties testProperties;

    //商品分页查询
    @ApiOperation(value = "查询商品品牌分页列表", notes = "查询商品品牌分页列表")
    @RequestMapping(value="/xml",method=RequestMethod.GET)
    public String testProperties(){
        StringBuffer buffer = new StringBuffer();
        buffer.append("name:"+testProperties.getName()+",")
              .append("password:"+testProperties.getPassword()+",")
              .append("age:"+testProperties.getAge()+".");
        return  buffer.toString();
    }
}
